package com.bn.util;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class BNFileReadsystem {

	public static void main(String args[]) {
		BufferedReader br = null;
		try {

			String currentLine;

			br = new BufferedReader(new FileReader(
					"/home/atg/Desktop/product.txt"));

			while ((currentLine = br.readLine()) != null) {
					String[] items = currentLine.split("|");
					HashMap<String, String> hashMap = new HashMap<String, String>();
				    for (int i=0;i <items.length;i++) {
				    	String item = items[i];
				    	System.out.println(item);
					}
				}

		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				if (br != null)
					br.close();
			} catch (IOException ex) {
				ex.printStackTrace();
			}

		}
	}

}